import java.io.File;
import java.util.Scanner;

public class FileTest1 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String next = sc.next();
        show(next);


    }
    public static void show(String filepath){
        //创建File对象
        File file1 = new File(filepath);
        //获取文件名
        String name = file1.getName();
        System.out.println(name);
        //获取绝对路径
        String absolutePath = file1.getAbsolutePath();
        System.out.println(absolutePath);
        //父路径
        String parent = file1.getParent();
        System.out.println(parent);
        //文件大小
        long length = file1.length();
        System.out.println(length);
        //后缀名
        System.out.println(name.split("\\.")[1]);


    }
}
